package com.lu.base.tools.log


/**
 *author: luqihua
 *date:2020/3/27
 *description: 本地log的包装类
 **/
object LocalLog {
    @JvmStatic
    fun d(tag: String, message: String) {
        RuijieLog.d(tag, message)
    }

    @JvmStatic
    fun d(tag: Class<*>, message: String) {
        RuijieLog.d(tag.simpleName, message)
    }

    @JvmStatic
    fun i(tag: String, message: String) {
        RuijieLog.i(tag, message)
    }

    @JvmStatic
    fun i(tag: Class<*>, message: String) {
        RuijieLog.i(tag.simpleName, message)
    }

    @JvmStatic
    fun w(tag: String, message: String, error: Throwable? = null) {
        RuijieLog.w(tag, message, error)
    }

    @JvmStatic
    fun w(tag: Class<*>, message: String, error: Throwable? = null) {
        RuijieLog.w(tag.simpleName, message, error)
    }

    @JvmStatic
    fun e(tag: String, message: String, error: Throwable? = null) {
        RuijieLog.e(tag, message, error)
    }

    @JvmStatic
    fun e(tag: Class<*>, message: String, error: Throwable? = null) {
        RuijieLog.e(tag.simpleName, message, error)
    }
}
